/**
 * Created with IntelliJ IDEA.
 * User: Администратор
 * Date: 25.06.12
 * Time: 1:24
 * To change this template use File | Settings | File Templates.
 */
$(document).ready(
    //
);
function formSubmit()
{
    var isEmail = $("#username").val().match(/\w+@\w+\.[a-zA-Z]{2,6}/);
    if (isEmail) {
        document.getElementsByTagName("form")[0].submit();
    } else {
        $("#msg").css({"color":"red"});
        $("#msg").html("Неправильный формат email!");
    }
}